// todo: 自定义弹窗消息
import 'package:upgrader/upgrader.dart';

class CustomUpgraderMessages extends UpgraderMessages {
  @override
  String message(UpgraderMessage messageKey) {
    switch (messageKey) {
      case UpgraderMessage.body:
        return 'A new version of the app is available. Update now for the latest features and fixes.';
      case UpgraderMessage.buttonTitleIgnore:
        return 'Ignore';
      case UpgraderMessage.buttonTitleLater:
        return 'Later';
      case UpgraderMessage.buttonTitleUpdate:
        return 'Update';
      case UpgraderMessage.title:
        return 'Update Available!';
      default:
        return super.message(messageKey) ?? '';
    }
  }
}
